/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package twbb.decision;

/**
 *
 * @author sun
 */
public class DecisionMain {

    public DecisionMain(){

    }

    public double[] getChargingFees(String dayPeriod) {

        if(dayPeriod.equals("beginning")){

            fee[0] = 0;
            fee[1] = 0;
            fee[2] = 0;
            fee[3] = 0;
            fee[4] = 0;

        }else if(dayPeriod.equals("final")){
            fee[0] = 0;
            fee[1] = 0;
            fee[2] = 0;
            fee[3] = 0;
            fee[4] = 0.2;
        }else if(dayPeriod.equals("general")){
            fee[0] = 0.2;
            fee[1] = 0.2;
            fee[2] = 0.2;
            fee[3] = 0.2;
            fee[4] = 0.2;
        }
        
        return fee;
    }


    protected double[] fee;

}
